package com.yanshaohui.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yanshaohui.service.PersonService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * Created by TS-Ysh on 2018-05-02.
 */
@Service(timeout = 5000)
@Component
public class PersonServiceImpl implements PersonService{

    private static Logger log = LoggerFactory.getLogger(PersonServiceImpl.class);

    @Override
    public String sayName(String string) {
        log.info("hi " + string + "!");
        return "hi " + string + "!";
    }
}
